/*
 * @Author: taoyuqing
 * @Date: 2023-02-02 01:39:57
 * @Description: 
 */
import 'package:spree/utils/http.dart';

class Api {
  static login(data) {
    return Request.post(
      "/usercenter/user/login",
      data: data,
    );
  }

  static getInfo() {
    return Request.post("/usercenter/user/userInfo");
  }

  static account() {
    return Request.post("/usercenter/user/account");
  }

  static regist(data) {
    return Request.post("/usercenter/user/register", data: data);
  }

  static historyInfo(data) {
    return Request.post("/game/game/history/list", data: data);
  }

  static deposit(data) {
    return Request.post("/assets/deposit/amount/v1", data: data);
  }

  static withdraw(data) {
    return Request.post("/assets/withdraw/user/transfer/amount", data: data);
  }

  static depositRecords(data) {
    return Request.post("/assets/deposit/user/record", data: data);
  }

  static listMessage(data) {
    return Request.post("/assets/notice/message/list", data: data);
  }

  static readMessage(data) {
    return Request.post("/assets/notice/message/read", data: data);
  }

  static depositRewardRule() {
    return Request.get("/assets/user/invite/first/deposit/reward/rule");
  }

  static inviteGiveBackRule() {
    return Request.get("/assets/user/invite/bet/give/amount/rule");
  }

  static inviteStaticsInfo() {
    return Request.get("/assets/user/statistics/info");
  }

  static uploadDeviceInfo(data) {
    return Request.post("/usercenter/user/uploadDeviceInfo", data: data);
  }
}
